package com.yuanchu.order.dto;

import com.yuanchu.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.Null;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-02-27 15:39
 */
@Data
public class EditOrderCommentDto {
    @Null(message = "请传入commentId", groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    private Integer commentId;
    private CommentForm form;

    @Data
    public static class CommentForm {
        private Integer score;
        private String content;
        private List<Integer> imageIds;
        private Integer status;
        private Integer sort;
    }
}
